function [stat] = getStatus(whichBoat)

assert((whichBoat==1) || (whichBoat==2) || (whichBoat == 3), ...
    'Bad boat selection, needs to be 1, 2, or 3.\n');

switch whichBoat
    case 1
        boat = '192.168.1.101';
    case 2
        boat = '192.168.1.102';
    case 3
        boat = '192.168.1.103';
end  

username = 'actuv';
password = 'CMU-actuv';
path = 'boats\ code/New\ Boats\ Code/Outputs';

sftp_simple_get(boat1, username, password, [path 'status.txt']);

fid = fopen('status.txt');
statusDump = fscanf(fid, '%s');

stat.started = str2double(statusDump(strfind(statusDump, '<started>') + 9));

end